var express = require('express');
var router = express.Router();
var connection = require('../lib/db.js');

//写个接口123
router.get('/123', function(req, res) {
	var sql = 'SELECT * FROM userInfor';
	connection.query(sql, function(err, result) {
		res.status(200),
			res.json(result)
	});
})

module.exports = router;